package cn.wolfcode.luowowo.service;

import cn.wolfcode.luowowo.domain.Destination;
import cn.wolfcode.luowowo.query.DestinationQuery;
import cn.wolfcode.luowowo.query.SearchQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 目的地服务接口
 */
public interface IDestinationService {
    void insert(Destination destination);
    void update(Destination destination);
    void delete(String id);
    Destination select(String id);
    Page<Destination> query(DestinationQuery qo);

    List<Destination> list();

    List<Destination> getDestByRegionId(String id);

    List<Destination> findByParentId(String parentId);

    void updateInfo(String id, String info);

    List<Destination> search(String regionId);

    List<Destination> listAll();

    List<Destination> listByKeyword(SearchQueryObject qo);

    Destination findByKeyword(SearchQueryObject qo);
}
